<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Praca magisterska: Plik źródłowy C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/filterBLMS_GPUsignals.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo_eti_small.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Praca magisterska
   
   </div>
   <div id="projectbrief">Implementacja algorytmów filtracji adaptacyjnej o strukturze transwersalnej na platformie CUDA</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Wygenerowano przez Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Strona&#160;główna</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;plików</span></a></li>
      <li><a href="globals.html"><span>Składowe&#160;plików</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('filter_b_l_m_s___g_p_usignals_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/boski/Documents/Visual Studio 2008/Projects/cuda/blms/filterBLMS_GPUsignals.h</div>  </div>
</div>
<div class="contents">
<a href="filter_b_l_m_s___g_p_usignals_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef FILTERBLMS_GPUSIGNALS_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#define FILTERBLMS_GPUSIGNALS_H</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="define_8h.html" title="Plik nagłówkowy ze zdefiniowanymi danymi.">define.h</a>&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="cudacomplex_8h.html" title="Implementacja obsługi liczb zespolonych.">cudacomplex.h</a>&quot;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="signal_reader_writer_8h.html" title="Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.">signalReaderWriter.h</a>&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &quot;<a class="code" href="kernels_8h.html" title="Funkcje urządzenia (kernele) - wykonywane na GPU.">kernels.h</a>&quot;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;cufft.h&gt;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a><a class="code" href="filter_b_l_m_s___g_p_usignals_8h.html#ae2daa49a9ae9f39ffbe4177490d37eb3">00021</a> <span class="preprocessor">#define BATCH 1 ///&lt; CUFFT</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00029"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html">00029</a> <span class="keyword">struct </span><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html" title="Filtr BLMS - wersja GPU, FFT na GPU (CUFFT).">filterBLMS_GPUsignals</a> {
<a name="l00030"></a>00030 
<a name="l00031"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#acb313412d9ec275a13a9ecca88e329c0">00031</a>         <span class="keywordtype">int</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#acb313412d9ec275a13a9ecca88e329c0" title="długość filtru">M</a>; 
<a name="l00032"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a06be498e71cf4b9e76dd363214278f61">00032</a>         <span class="keywordtype">int</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a06be498e71cf4b9e76dd363214278f61" title="długość bloku danych">B</a>; 
<a name="l00033"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#aec6d73ccaded12182676894898e95a32">00033</a>         <span class="keywordtype">float</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#aec6d73ccaded12182676894898e95a32" title="parametr mi filtru">mi</a>; 
<a name="l00034"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a62b15c2f75d50c2828627c02dcdca2f4">00034</a>         <span class="keywordtype">float</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a62b15c2f75d50c2828627c02dcdca2f4" title="parametr beta filtru">beta</a>; 
<a name="l00035"></a>00035 
<a name="l00036"></a>00036         <span class="comment">//cudacomplex *buf_u; // bufor zawierajacy dwa bloki sygnalu u</span>
<a name="l00037"></a>00037         <span class="comment">//cudacomplex *buf_d; // blok/bufor (dlugosc 2B) sygnalu d</span>
<a name="l00038"></a>00038         <span class="comment">//cudacomplex *buf_y; // blok/bufor (dlugosc 2B  ze wzgledu na pozniejsze dzialanie ifft) sygnalu wyjsciowego y</span>
<a name="l00039"></a>00039         <span class="comment">//cudacomplex *buf_e; // blok/bufor (dlugosc 2B) sygnalu e</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041         <span class="comment">// alokacja U_sub na hoscie niepotrzebna, wystarczy tylko na urządzeniu</span>
<a name="l00042"></a>00042         
<a name="l00043"></a>00043         <span class="comment">//cudacomplex *lc; // wagi filtrów</span>
<a name="l00044"></a>00044 
<a name="l00045"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a17f1b02b9eb0f6d70c5601eba53a2686">00045</a>         <span class="keywordtype">float</span> *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a17f1b02b9eb0f6d70c5601eba53a2686" title="parametry lambda">lambda</a>; 
<a name="l00046"></a>00046 
<a name="l00047"></a>00047         <span class="comment">// wskaźniki na zmienne w pamięci urządzenia</span>
<a name="l00048"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#ad6cd6ac0eb93dcf1608ad3e80119bb3b">00048</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#ad6cd6ac0eb93dcf1608ad3e80119bb3b" title="DEVICE sygnał wejściowy (input)">dev_u</a>; 
<a name="l00049"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a02c8fe95e8c40b8b753c83e4bee7f770">00049</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a02c8fe95e8c40b8b753c83e4bee7f770" title="DEVICE sygnał odniesienia (desired)">dev_d</a>; 
<a name="l00050"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a71d362bc3173aa2f0eda88e2d3d23748">00050</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a71d362bc3173aa2f0eda88e2d3d23748" title="DEVICE sygnał wyjściowy - błędu (error)">dev_e</a>; 
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a5562eb7b59d236be672b69da3f919eea">00052</a>         <span class="keywordtype">float</span> *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a5562eb7b59d236be672b69da3f919eea" title="DEVICE parametry lambda.">dev_lambda</a>; 
<a name="l00053"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#ac68c441a839a4bb5b3418b654f3e2c7c">00053</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#ac68c441a839a4bb5b3418b654f3e2c7c" title="DEVICE bufor zawierajacy dwa bloki sygnalu u po dzialaniu FFT.">dev_U</a>; 
<a name="l00054"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a51d23713c8c01af781f820d3e2e2fb0e">00054</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a51d23713c8c01af781f820d3e2e2fb0e" title="DEVICE bufory &#39;podsygnalow&#39; wejsciowych po FFT (2B wektorow o dlugosci M/B w postaci jednego wektora)...">dev_U_sub</a>; 
<a name="l00055"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#af13e3a06013482c3f77d1351c0292443">00055</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#af13e3a06013482c3f77d1351c0292443" title="DEVICE probki &#39;podsygnalow&#39; wyjsciowych przed IFFT.">dev_Y</a>; 
<a name="l00056"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a5c110d6eee3de349be42d4643924b4c7">00056</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a5c110d6eee3de349be42d4643924b4c7" title="DEVICE bufor zawierajacy dwa bloki sygnalu e po dzialaniu FFT.">dev_E</a>; 
<a name="l00057"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a9f2576d213ba2ea55bb08a7649c4b861">00057</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a9f2576d213ba2ea55bb08a7649c4b861" title="DEVICE wagi filtrow.">dev_lc</a>; 
<a name="l00058"></a>00058         
<a name="l00059"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a084d43b3a3cedad0db8364a52e44dbd3">00059</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a084d43b3a3cedad0db8364a52e44dbd3" title="DEVICE bufor zawierajacy dwa bloki sygnalu u.">dev_buf_u</a>; 
<a name="l00060"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a347b327c5ced22fc80a0253c959a61e3">00060</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a347b327c5ced22fc80a0253c959a61e3" title="DEVICE blok/bufor (dlugosc 2B ze wzgledu na pozniejsze dzialanie ifft) sygnalu wyjsciowego y...">dev_buf_y</a>; 
<a name="l00061"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a828c9a434caa689ab5d4a48be662b7d9">00061</a>         cudacomplex *<a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a828c9a434caa689ab5d4a48be662b7d9" title="DEVICE blok/bufor (dlugosc 2B) sygnalu e.">dev_buf_e</a>; 
<a name="l00062"></a>00062         
<a name="l00063"></a>00063         <span class="comment">// plany FFT (CUFFT)</span>
<a name="l00064"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a6e5ae98c78a174b13a3af4b88aeb44ad">00064</a>         cufftHandle <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a6e5ae98c78a174b13a3af4b88aeb44ad" title="plan FFT">cufftPlan_U</a>; 
<a name="l00065"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a62b9c380518322f13a6d2cebcb1188e6">00065</a>         cufftHandle <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a62b9c380518322f13a6d2cebcb1188e6" title="plan IFFT">cufftPlan_Y</a>; 
<a name="l00066"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a9b8cfaa502523e366c07e5b3c6b1cb64">00066</a>         cufftHandle <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a9b8cfaa502523e366c07e5b3c6b1cb64" title="plan FFT">cufftPlan_E</a>; 
<a name="l00067"></a>00067 
<a name="l00079"></a>00079         <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a62e27fcc027d2c4196a73e30c28f0415">filterBLMS_GPUsignals</a>(<span class="keywordtype">int</span> Nu, <span class="keywordtype">int</span> Msize, <span class="keywordtype">int</span> Bsize, <span class="keywordtype">float</span> miParam, <span class="keywordtype">float</span> betaParam, <a class="code" href="struct_signal_reader_writer.html" title="Odczytywanie i zapisywanie sygnałów wejściowych i wyjściowych.">SignalReaderWriter</a> SRW);
<a name="l00080"></a>00080 
<a name="l00084"></a>00084         <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a50666613a3cd64d6eb96daea4fbe5316">~filterBLMS_GPUsignals</a>();
<a name="l00085"></a>00085 
<a name="l00095"></a>00095         <span class="keywordtype">void</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a35a82ddf1f77831ed361af92e7458312">dataFiltering</a>(<span class="keywordtype">int</span> blocksPerGrid, <span class="keywordtype">int</span> threadsPerBlock, <span class="keywordtype">int</span> Nu, <span class="keywordtype">int</span> start);
<a name="l00096"></a>00096 
<a name="l00105"></a><a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#aede073c684c388e02ef2da3086681b78">00105</a>         <span class="keywordtype">void</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#aede073c684c388e02ef2da3086681b78">dataFiltering</a>(<span class="keywordtype">int</span> blocksPerGrid, <span class="keywordtype">int</span> threadsPerBlock, <span class="keywordtype">int</span> Nu) {
<a name="l00106"></a>00106                 <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a35a82ddf1f77831ed361af92e7458312">dataFiltering</a>(blocksPerGrid, threadsPerBlock, Nu, 0);
<a name="l00107"></a>00107         };
<a name="l00108"></a>00108 
<a name="l00116"></a>00116         <span class="keywordtype">void</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#a1a2c17542d22ac554a84c186681e9678">getErrorSignal</a>(<span class="keywordtype">int</span> Nu, cudacomplex* e);
<a name="l00117"></a>00117 
<a name="l00123"></a>00123         <span class="keywordtype">void</span> <a class="code" href="structfilter_b_l_m_s___g_p_usignals.html#aaea27c490ca4de57f3a446b9e2b51c43">freeMemory</a>();
<a name="l00124"></a>00124 
<a name="l00125"></a>00125 };
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="preprocessor">#endif </span><span class="comment">/* FILTERBLMS_GPUSIGNALS_H */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="filter_b_l_m_s___g_p_usignals_8h.html">filterBLMS_GPUsignals.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Definicje</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Wygenerowano Wed Nov 23 2011 12:30:13 dla Praca magisterska programem
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
